/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

export interface SharedRecord {
    // 统一数据类型，参考@ohos.data.uniformTypeDescriptor (标准化数据定义与描述)
    // https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-data-uniformtypedescriptor
    utd: string;

    // 如果是文本、链接等内容，建议填入title标识其标题
    title?: string;

    // 标识当前数据记录类型的标签，在单选模式时生效
    label?: string;

    // 数据记录的描述
    description?: string;

    // 数据记录缩略图
    thumbnail?: Uint8Array;

    // 数据记录缩略图的URI
    thumbnailUri?: string;

    // 数据记录的URI
    uri?: string;

    // 数据记录内容。链接（包含App Linking）、文本类型的内容通过该字段传递
    content?: string;

    // 扩展数据，用于向目标应用/设备分享自定义的扩展内容
    extraData?: Record<string, string | number | boolean | Array<string | number | boolean>>;
}